@import "../common.scss";

$DialogBackgroundColor: #FAFAFC;
$DialogLineColor: #D5D5D6;
$DialogLinkColor: #3CC51F;
$DialogLinkActiveBc: #EEEEEE;

.dialog {
    position: fixed;
    z-index: 5000;
    width: 85%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 2px 2px 2px 2px rgba(22, 22, 22, 0.6);
    border-radius: 0.15rem;
    overflow: hidden;
    color: white;
    text-align: center;
    border-radius: 3px;
    overflow: hidden;
    .dialog_confirm & {
        .dialog_hd {
            padding: 1.2em 20px .5em;
        }
        .dialog_bd {
            text-align: left;
        }
    }
    .dialog-content{
        background: url(../../public/images/common/item_on_bg.png) no-repeat;
        background-size: cover;
        border-radius: 0.2rem;
    }
}

.dialog_hd {
    padding: 1.2em 0 .5em;
}

.dialog_title {
    font-weight: 400;
    font-size: 17px;
}

.dialog_bd {
    padding: 0 20px;
    font-size: 15px;
    color: #fff;
    word-wrap: break-word;
    word-break: break-all;
}

.dialog_ft {
    position: relative;
    line-height: 42px;
    padding: 10px;
    font-size: 17px;
    a {
        width: 100%;
        &:active {
            background-color: $DialogLinkActiveBc;
        }
    }
    &:after {
        content: " ";
        @include setTopLine($globalBorderColor);
    }
    .dialog_confirm & {
        a {
            position: relative;
            &:after {
                content: " ";
                @include setLeftLine($DialogLineColor);
            }
            &:first-child {
                &:after {
                    display: none;
                }
            }
        }
    }
}

.btn_dialog {
    &.default {
        color: #353535;
    }
    &.primary {
        color: #0BB20C;
    }
}

@media screen and (min-width: 1024px) {
    .dialog {
        width: 35%;
    }
}

.main .modal-content .modal-footer{
    text-align: center; 
}
.main .modal-dialog{
    width: 80%;
    margin: 4.5rem auto;
}
.main .modal-dialog .modal-content{
    border-radius: 0.6rem;
}
.main .modal-dialog .modal-content .modal-footer button{
    border-radius: 0.2rem;
}